package com.test.redis.chapter1.vote;

import java.util.Date;

/**
 * 文章信息类
 */
public class ArticleInfo {

    private long id;
    private String title;
    private String url;
    private String author;
    private Date publishDate;
    private long voteCount;

    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    public Date getPublishDate() {
        return publishDate;
    }
    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }
    public long getVoteCount() {
        return voteCount;
    }
    public void setVoteCount(long voteCount) {
        this.voteCount = voteCount;
    }
    @Override
    public String toString() {
        return "ArticleInfo [id=" + id + ", title=" + title + ", url=" + url + ", author=" + author + ", publishDate="
                + publishDate + ", voteCount=" + voteCount + "]";
    }

    

}
